package com.ruibang.glass.sale.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;


@Data
@ApiModel
@TableName(value = "g_sale_return_exchange_order_detail")
public class GSaleReturnExchangeOrderDetail extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "订单编号")
    private String orderNumber;
    @ApiModelProperty(value = "订单id")
    private String orderId;
    @ApiModelProperty(value = "产品")
    private String productName;

    @ApiModelProperty(value = "产品")
    private String productCode;

    @ApiModelProperty(value = "产品Id")
    private String productId;
    @ApiModelProperty(value = "产品规格")
    private String productSpecification;
    @ApiModelProperty(value = "退货数量")
    private BigDecimal returnQuantity;
    @ApiModelProperty(value = "退货单价")
    private BigDecimal returnUnitPrice;
    @ApiModelProperty(value = "退货全额")
    private BigDecimal returnTotal;
    @ApiModelProperty(value = "退货订单号")
    private String returnOrderNumber;
    @ApiModelProperty(value = "发货日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deliveryDate;
    @ApiModelProperty(value = "到货日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime arrivalDate;
    @ApiModelProperty(value = "托盘号")
    private String trayId;
    @ApiModelProperty(value = "玻璃Id")
    private String glassId;
    @ApiModelProperty(value = "问题描述")
    private String issueDescription;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "退货单ID")
    private String returnId;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    @TableField(exist = false)
    private BigDecimal quantity;


}
